using System;
using System.Web.UI.WebControls;
using ControlLibrary.Collections;
using ControlLibrary.Helpers;
using ControlLibrary.Interfaces;

namespace ControlLibrary.Controls
{
    public class BulletedListBinding : BulletedList, IDataBinding
    {
        private DataBindingCollection dataBindingCollection;

        public BulletedListBinding()
            : base()
        {
            this.dataBindingCollection = new DataBindingCollection();
        }

        protected override void OnDataBinding(EventArgs e)
        {
            HelperBinding.DataBind(this, this.Page);
            base.OnDataBinding(e);
        }

        public DataBindingCollection DataBindings
        {
            get { return this.dataBindingCollection; }
        }
    }
}